import type { PropType } from "vue";

import { basicModalEmits, basicModalProps } from "@/hooks/useModalToggle";

export interface SelectBoxItem extends API.BOX.BoxListItem {
  num: number;
}

export const selectPackProps = {
  ...basicModalProps,
  selectedBox: {
    type: Array as PropType<SelectBoxItem[]>,
    default: () => [],
  },
};

export const selectPackEmits = {
  ...basicModalEmits,
  "update:selectedBox": (boxs: SelectBoxItem[]) => boxs,
};
